<template>
  <el-menu
    :default-active="activeIndex"
    class="el-menu-demo"
    mode="horizontal"
    @select="handleSelect"
  >
    <img src="../assets/logo.jpg" width="80" alt="" />
    <el-menu-item index="1">华为商城管理后台</el-menu-item>
    <div class="center"></div>
    <img src="../assets/index.jpg" id="img1" alt="" />
    <p>浮生</p>
    <el-menu-item index="3" @click="exit">退出</el-menu-item>
  </el-menu>
</template>
<script setup>
import { ref } from "vue";

import { useRouter } from "vue-router";
const router = useRouter();
const exit = () => {
  sessionStorage.removeItem("token");
  sessionStorage.removeItem("tag");
  router.push({
    name: "Login",
  });
};
</script>
<style scoped lang="scss">
el-page-header {
  background-color: aqua;
}
#li3 {
  float: right;
}
#img1 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-top: 10px;
}
.center {
  width: 1040px;
  height: 60px;
}
p {
  width:40px;
  font-size: 14px;
  line-height: 60px;
  color: aqua;
  margin-left: 15px;
}
.el-header {
  --el-header-padding: 0;
  --el-header-height: 60px !important;
  height: 60px;
  padding: var(--el-header-padding);
  box-sizing: border-box;
  flex-shrink: 0;
  height: var(--el-header-height);
  li {
    line-height: 60px;
  }
}
</style>
